-
-
Notifications
You must be signed in to change notification settings - Fork 245
[mkwkw] WEEK 01 Solutions #1677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
map에 저장해둔 key, value 중 key값 만을 사용하고 계신것 같아서, set을 사용해도 괜찮지 않을까 싶습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다!
appearance.put(nums[i], true); | ||
appearance.add(nums[i]); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set을 활용한 접근 방식은 굉장히 좋은 것 같습니다. 고생하셨습니다!
위 부분에는 Early Return을 적용한다면, 더 가독성이 높아지지 않을까 생각이 들어 참고차 자료 공유드립니다🙏
https://thearchivelog.dev/article/are-early-returns-any-good/
고생하셨습니다!! |
답안 제출 문제
작성자 체크 리스트
In Review
로 설정해주세요.검토자 체크 리스트
Important
본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!